﻿using System.Collections;
using System.Collections.Generic;
using System.Linq;

namespace InvokeCommandActionWithEventArgs
{
    /// <summary>
    /// SelectedChangedEventArgs用のCommandParameterクラス
    /// </summary>
    public class SelectionChangedCommandParameter<T>
    {
        public SelectionChangedCommandParameter(IList removedItems, IList addedItems)
        {
            RemovedItems = removedItems.Cast<T>().ToList();
            AddedItems = addedItems.Cast<T>().ToList();
        }

        public List<T> RemovedItems { get; private set; }
        public List<T> AddedItems { get; private set; }
    } 
}
